//
//  GKDYVideoControlView.h
//  GKDYVideo
//
//  Created by QuintGao on 2018/9/23.
//  Copyright © 2018 QuintGao. All rights reserved.
//  播放器视图控制层

#import <UIKit/UIKit.h>
#import "LYouVideoModel.h"

NS_ASSUME_NONNULL_BEGIN

@class LYouVideoControlView;

@protocol GKDYVideoControlViewDelegate <NSObject>

- (void)controlViewDidClickSelf:(LYouVideoControlView *)controlView;

- (void)controlViewDidClickDetailBtn:(LYouVideoControlView *)controlView;

- (void)controlViewDidClickFavorite:(LYouVideoControlView *)controlView;

@end

@interface LYouVideoControlView : UIView

@property (nonatomic, weak) id<GKDYVideoControlViewDelegate> delegate;

// 视频封面图:显示封面并播放视频
@property (nonatomic, strong) UIImageView       *coverImgView;
@property (nonatomic, strong) UIButton   *detailBtn;
@property (nonatomic, strong) UIButton          *favoriteBtn;
@property (nonatomic, strong) LYouVideoModel    *model;
@property (nonatomic, copy) void (^clickPlayButtonBlock) (void);
@property (nonatomic, strong) UIButton                  *playBtn;

- (void)startLoading;
- (void)stopLoading;

- (void)showPlayBtn;
- (void)hidePlayBtn;

@end

NS_ASSUME_NONNULL_END
